public class methodMax {
    public static void main(String[] args) {
        //
        int[] arr={14,55,33,35,48};
        int max=Max(arr);
        System.out.println(max);
    }
    public static int  Max(int[] arr){
        int max=arr[0];
        //int temp=0;
        for (int i = 1; i < arr.length; i++) {
            if(arr[i]>max)
                // temp= max;
                max=arr[i];
            //arr[i]=temp;
        }
        return max;
    }


}
